package com.teatrace.model.process;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="process_flow")
public class ProcessFlow implements java.io.Serializable{
	@Id
	@Column(name="process_flow_id")
	private long id;//加工流程编号
	
	private String description;
	private String name;
	private int deleted;
	
	@Column(name="tea_type")
	private String teatype;
	
	@OneToMany(mappedBy="processflow",cascade=CascadeType.REMOVE)
	private Set<Consist> consists = new HashSet<Consist>();
	
	public String getTeatype() {
		return teatype;
	}
	public void setTeatype(String teatype) {
		this.teatype = teatype;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Set<Consist> getConsists() {
		return consists;
	}
	public void setConsists(Set<Consist> consists) {
		this.consists = consists;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getDeleted() {
		return deleted;
	}
	public void setDeleted(int deleted) {
		this.deleted = deleted;
	}
}
